.class public Lcom/estrongs/android/pop/app/editor/e;
.super Ljava/lang/Object;
.source "PositionCache.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/estrongs/android/pop/app/editor/e$a;
    }
.end annotation


# instance fields
.field private a:I

.field private b:Ljava/util/ArrayList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/ArrayList<",
            "Lcom/estrongs/android/pop/app/editor/e$a;",
            ">;"
        }
    .end annotation
.end field


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    const/16 v0, 0x2800

    .line 2
    iput v0, p0, Lcom/estrongs/android/pop/app/editor/e;->a:I

    .line 3
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    iput-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    return-void
.end method


# virtual methods
.method public declared-synchronized a(I)Lcom/estrongs/android/pop/app/editor/e$a;
    .locals 4

    monitor-enter p0

    const/4 v0, 0x0

    if-lez p1, :cond_3

    .line 8
    :try_start_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-nez v1, :cond_0

    goto :goto_1

    :cond_0
    const/4 v1, 0x0

    .line 9
    :goto_0
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v2}, Ljava/util/ArrayList;->size()I

    move-result v2

    if-ge v1, v2, :cond_2

    .line 10
    iget-object v2, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v2, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/android/pop/app/editor/e$a;

    .line 11
    iget v3, v2, Lcom/estrongs/android/pop/app/editor/e$a;->a:I
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-le v3, p1, :cond_1

    .line 12
    monitor-exit p0

    return-object v0

    :cond_1
    add-int/lit8 v1, v1, 0x1

    move-object v0, v2

    goto :goto_0

    .line 13
    :cond_2
    :try_start_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    add-int/lit8 v0, v0, -0x1

    invoke-virtual {p1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/app/editor/e$a;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-object p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1

    .line 14
    :cond_3
    :goto_1
    monitor-exit p0

    return-object v0
.end method

.method public declared-synchronized a(J)Lcom/estrongs/android/pop/app/editor/e$a;
    .locals 6

    monitor-enter p0

    const-wide/16 v0, 0x0

    const/4 v2, 0x0

    cmp-long v3, p1, v0

    if-lez v3, :cond_3

    .line 15
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_0

    goto :goto_1

    :cond_0
    const/4 v0, 0x0

    .line 16
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_2

    .line 17
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/pop/app/editor/e$a;

    .line 18
    iget-wide v3, v1, Lcom/estrongs/android/pop/app/editor/e$a;->b:J
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    cmp-long v5, v3, p1

    if-lez v5, :cond_1

    .line 19
    monitor-exit p0

    return-object v2

    :cond_1
    add-int/lit8 v0, v0, 0x1

    move-object v2, v1

    goto :goto_0

    .line 20
    :cond_2
    :try_start_1
    iget-object p1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    iget-object p2, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {p2}, Ljava/util/ArrayList;->size()I

    move-result p2

    add-int/lit8 p2, p2, -0x1

    invoke-virtual {p1, p2}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object p1

    check-cast p1, Lcom/estrongs/android/pop/app/editor/e$a;
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-object p1

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1

    .line 21
    :cond_3
    :goto_1
    monitor-exit p0

    return-object v2
.end method

.method public declared-synchronized a(IJ)V
    .locals 6

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-nez v0, :cond_0

    .line 2
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    new-instance v1, Lcom/estrongs/android/pop/app/editor/e$a;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/estrongs/android/pop/app/editor/e$a;-><init>(Lcom/estrongs/android/pop/app/editor/e;IJ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 3
    :cond_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/editor/e$a;

    iget v0, v0, Lcom/estrongs/android/pop/app/editor/e$a;->a:I

    if-ge p1, v0, :cond_1

    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/editor/e$a;

    iget-wide v2, v0, Lcom/estrongs/android/pop/app/editor/e$a;->b:J

    sub-long/2addr v2, p2

    iget v0, p0, Lcom/estrongs/android/pop/app/editor/e;->a:I

    int-to-long v4, v0

    cmp-long v0, v2, v4

    if-ltz v0, :cond_1

    .line 4
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    new-instance v2, Lcom/estrongs/android/pop/app/editor/e$a;

    invoke-direct {v2, p0, p1, p2, p3}, Lcom/estrongs/android/pop/app/editor/e$a;-><init>(Lcom/estrongs/android/pop/app/editor/e;IJ)V

    invoke-virtual {v0, v1, v2}, Ljava/util/ArrayList;->add(ILjava/lang/Object;)V

    goto :goto_0

    .line 5
    :cond_1
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/editor/e$a;

    iget v0, v0, Lcom/estrongs/android/pop/app/editor/e$a;->a:I

    if-le p1, v0, :cond_2

    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/editor/e$a;

    iget-wide v0, v0, Lcom/estrongs/android/pop/app/editor/e$a;->b:J

    sub-long v0, p2, v0

    iget v2, p0, Lcom/estrongs/android/pop/app/editor/e;->a:I

    int-to-long v2, v2

    cmp-long v4, v0, v2

    if-ltz v4, :cond_2

    .line 6
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    new-instance v1, Lcom/estrongs/android/pop/app/editor/e$a;

    invoke-direct {v1, p0, p1, p2, p3}, Lcom/estrongs/android/pop/app/editor/e$a;-><init>(Lcom/estrongs/android/pop/app/editor/e;IJ)V

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 7
    :cond_2
    :goto_0
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    throw p1
.end method

.method public declared-synchronized b(J)V
    .locals 4

    monitor-enter p0

    .line 1
    :try_start_0
    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v0}, Ljava/util/ArrayList;->size()I

    move-result v0

    if-lez v0, :cond_3

    iget-object v0, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    add-int/lit8 v1, v1, -0x1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/estrongs/android/pop/app/editor/e$a;

    iget-wide v0, v0, Lcom/estrongs/android/pop/app/editor/e$a;->b:J

    cmp-long v2, p1, v0

    if-lez v2, :cond_0

    goto :goto_1

    :cond_0
    const/4 v0, 0x0

    .line 2
    :goto_0
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v1}, Ljava/util/ArrayList;->size()I

    move-result v1

    if-ge v0, v1, :cond_2

    .line 3
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/android/pop/app/editor/e$a;

    .line 4
    iget-wide v1, v1, Lcom/estrongs/android/pop/app/editor/e$a;->b:J

    cmp-long v3, v1, p1

    if-lez v3, :cond_1

    .line 5
    iget-object v1, p0, Lcom/estrongs/android/pop/app/editor/e;->b:Ljava/util/ArrayList;

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->remove(I)Ljava/lang/Object;
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_1
    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    .line 6
    :cond_2
    monitor-exit p0

    return-void

    .line 7
    :cond_3
    :goto_1
    monitor-exit p0

    return-void

    :catchall_0
    move-exception p1

    monitor-exit p0

    goto :goto_3

    :goto_2
    throw p1

    :goto_3
    goto :goto_2
.end method
